package cn.wolfcode.service;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.PageResult;
import cn.wolfcode.qo.QueryObject;

import java.util.List;

public interface IPermissionService {
    void delete(Long id);
    void save(Permission permission);

    Permission get(Long id);

    List<Permission> listAll();

    void update(Permission permission);

    PageResult<Permission> query(QueryObject qo);
    //权限加载
    void reload();

    /**
     * 根据员工id查询权限表达式
     * @param id
     * @return
     */
    List<String> selectByEmpId(Long id);
}
